package com.ks.community.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author dCoder
 * @since 2022-04-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Post对象", description="")
public class Post implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "动态推送ID")
    @TableId(value = "post_id", type = IdType.ID_WORKER_STR)
    private String postId;

    @ApiModelProperty(value = "发布者ID")
    private String uploaderId;

    @ApiModelProperty(value = "动态内容")
    private String postContent;

    @ApiModelProperty(value = "发布时间")
    @TableField(value = "Insert_time",fill = FieldFill.INSERT)
    private Date insertTime;

    @TableField(value = "Update_time" ,fill=FieldFill.INSERT_UPDATE)
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "是否被删除")
    private Integer isDeleted;


}
